package com.buka.seckill.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "itbuka_seckill_product")
@Data
public class SeckillProduct implements Serializable {
    @Id
    private Long id;

    /**
     * 秒杀id
     */
    @Column(name = "seckill_id")
    private Long seckillId;

    /**
     * 商品名称
     */
    @Column(name = "product_name")
    private String productName;

    /**
     * 商品id
     */
    @Column(name = "product_id")
    private Long productId;

    /**
     * 商品价格
     */
    @Column(name = "product_money")
    private Long productMoney;

    /**
     * 库存
     */
    private Integer num;

    /**
     * 活动价格
     */
    @Column(name = "seckill_money")
    private Long seckillMoney;

    /**
     * 商家名称
     */
    @Column(name = "merchant_name")
    private String merchantName;

    /**
     * 活动场次
     */
    @Column(name = "activity_times")
    private String activityTimes;
    /**
     * 删除标识
     */
    @Column(name = "is_delete")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;
}